<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.org/ui"
	template="/templates/modeloGeral.xhtml">

	<ui:define name="norte">
		<ui:include src="/include/topo.xhtml" />
	</ui:define>

	<ui:define name="centro">
		<p:focus for="frmLogin:txtLogin" />

		<p:messages id="msgLogin" autoUpdate="true" />

		<h:form id="frmLogin">
			<p:panel header="#{msg.pnlTitulo}">
				<h:panelGrid columns="2">
					<h:outputText value="#{msg.txtLogin}:" />
					<p:inputMask id="txtLogin" mask="9999999-9"
						value="#{usuarioBacking.usuario.login}" size="18" maxlength="9"
						required="true" requiredMessage="#{msg.erroLoginObrig}" />

					<h:outputText value="#{msg.txtSenha}:" />
					<p:password value="#{usuarioBacking.usuario.senha}" size="18"
						maxlength="18" required="true"
						requiredMessage="#{msg.erroSenhaObrig}" feedback="false" />
				</h:panelGrid>

				<h:panelGrid columns="1">
					<p:commandButton value="#{msg.btnEntrar}"
						action="#{usuarioBacking.logar}" ajax="false" />
					<h:outputText value="#{msg.erroLoginSenhaObrig}" />
				</h:panelGrid>
			</p:panel>
		</h:form>
	</ui:define>

	<ui:define name="sul" />

</ui:composition>
